# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=otpclient
pkgver=2.6.2
pkgrel=0
pkgdesc="Simple GTK+ client for managing TOTP and HOTP"
url="https://github.com/paolostivanin/OTPClient"
license="GPL-3.0-or-later"
arch="all"
options="!check" # no test suite
makedepends="
	cmake
	gtk+3.0-dev
	jansson-dev
	libbaseencode-dev
	libcotp-dev
	libgcrypt-dev
	libpng-dev
	libsecret-dev
	libzip-dev
	protobuf-dev
	protobuf-c-dev
	zbar-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/paolostivanin/OTPClient/archive/v$pkgver/OTPClient-$pkgver.tar.gz"
builddir="$srcdir/OTPClient-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a3d1913019374fa895286f88b7ddc4601a1e64bb3036dae8391b4f9741b38b843ee3a59aa457ad7a0c42c38762adcbc9ffabe1959c339db14b4802207f639386  OTPClient-2.6.2.tar.gz
"
